﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GA.Server.Api
{
    public abstract class SignedApiCall : ApiCall
    {
        public SignedApiCall()
        {
        }

        public SignedApiCall(int clientId, string authorizationText, string sessionId)
            : base(clientId, authorizationText)
        {
            mSessionId = sessionId;
        }

        protected void LoadSignedApiCall(string parameters)
        {
            if (parameters == null)
            {
                parameters = string.Empty;
            }
            if (parameters.Length > 0)
            {
                parameters += "&";
            }
            parameters += "session=" + mSessionId;
            LoadXmlDocument(parameters);
        }

        private string mSessionId;


    }
}
